package me.szlx.validation.exception;


import me.szlx.validation.Constraint;

/**
 * <p>统一异常处理的基类，一个运行时异常。</p>
 * <p>为整个体系兼容使用的异常提供铆接点。</p>
 */
public interface ExceptionManager<E extends RuntimeException> {
    E create(Constraint constraint, Throwable cause);

    Constraint parse(Throwable cause);
}
